package com.atjinggu.jinggumail.search.vo;

import com.atjinggu.jinggumail.common.to.es.SkuEsModule;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author jingming
 * @Type SearchResultVo.java
 * @Desc 商品返回详情
 * @date 2021/1/22 15:32
 */
@Data
public class SearchResultVo {
    //商品详细信息
    private List<SkuEsModule> skuInfo;
    //品牌信息
    private List<Brand>  brands;
    //分类信息
    private List<CataLog> cataLogs;
    //属性信息
    private List<Attr> attrs;

    private Integer pageNum; //当前页码
    private Long total; //总记录数
    private Integer totalPages; //总页码

    //分页页码
    private List<Integer> pageNavs;

    //面包屑导航数据
    private List<NavVo> navs = new ArrayList();

    private List<Long> attrIds = new ArrayList<>();

    @Data
    public static class NavVo{
        private String navName;
        private String navValue;
        private String link;
    }


    @Data
    public static class Brand {
        private  Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CataLog {
        private  Long catalogId;
        private  String catalogName;
    }

    @Data
    public static class Attr {
        private  Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}